package main

import (
	"fmt"
	"net/http"
)

func root() string {
	return "welcome to visit SZU_Blockchain_Research Center"
}

func main() {

	//添加路由表
	http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
		fmt.Fprintf(w, root())
	})

	//http.Handle("/api/callback/upload", newUploadCB())
	http.Handle("/api/callback/charge", newChargeCB())

	//监听http请求
	http.ListenAndServe(":4000", nil)

}
